<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/common.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">common.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#ifndef COMMON_H_</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#define COMMON_H_</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#ac51554cebbaae5040fd5bd3a55d1e6fe">   50</a></span>&#160;<a class="code" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#ac51554cebbaae5040fd5bd3a55d1e6fe">setIdentity</a>(<span class="keywordtype">float</span>* matrix);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aeb7d72950c8e6996d57551af6913b84e">   61</a></span>&#160;<a class="code" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aeb7d72950c8e6996d57551af6913b84e">multMatrix</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>* left, <span class="keyword">const</span> <span class="keywordtype">float</span>* right, <span class="keywordtype">float</span>* result);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keywordtype">bool</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aa02f956d22f815ef59104320d2645d69">   67</a></span>&#160;<a class="code" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aa02f956d22f815ef59104320d2645d69">invertMatrix</a>(<span class="keyword">const</span> <span class="keywordtype">float</span>* matrix, <span class="keywordtype">float</span>* inverse);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a35f81c7e5d9512d1a577af2655f1ec5f">   75</a></span>&#160;<a class="code" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a35f81c7e5d9512d1a577af2655f1ec5f">toString</a>(T input, std::string &amp;result)</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;{</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;  std::stringstream ss;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;  ss &lt;&lt; input;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;  result = ss.str();</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a7fce1bef213d646ea7ece16157c37bc0">   85</a></span>&#160;<a class="code" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a7fce1bef213d646ea7ece16157c37bc0">stringToLower</a>(std::string &amp;s);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// COMMON_H_</span></div>
<div class="ttc" id="aapps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_html_a35f81c7e5d9512d1a577af2655f1ec5f"><div class="ttname"><a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a35f81c7e5d9512d1a577af2655f1ec5f">toString</a></div><div class="ttdeci">void toString(T input, std::string &amp;result)</div><div class="ttdoc">Helper function for converting objects to strings (using operator&lt;&lt;)</div><div class="ttdef"><b>Definition:</b> common.h:75</div></div>
<div class="ttc" id="aapps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_html_a7fce1bef213d646ea7ece16157c37bc0"><div class="ttname"><a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#a7fce1bef213d646ea7ece16157c37bc0">stringToLower</a></div><div class="ttdeci">void stringToLower(std::string &amp;s)</div><div class="ttdoc">Converts the passed string to lowercase in place</div></div>
<div class="ttc" id="aapps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_html_aa02f956d22f815ef59104320d2645d69"><div class="ttname"><a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aa02f956d22f815ef59104320d2645d69">invertMatrix</a></div><div class="ttdeci">bool invertMatrix(const float *matrix, float *inverse)</div><div class="ttdoc">Finds the inverse of a matrix</div></div>
<div class="ttc" id="aapps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_html_ac51554cebbaae5040fd5bd3a55d1e6fe"><div class="ttname"><a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#ac51554cebbaae5040fd5bd3a55d1e6fe">setIdentity</a></div><div class="ttdeci">void setIdentity(float *matrix)</div><div class="ttdoc">Sets an array representing a 4x4 matrix to the identity</div></div>
<div class="ttc" id="aapps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h_html_aeb7d72950c8e6996d57551af6913b84e"><div class="ttname"><a href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html#aeb7d72950c8e6996d57551af6913b84e">multMatrix</a></div><div class="ttdeci">void multMatrix(const float *left, const float *right, float *result)</div><div class="ttdoc">Performs result = left * right</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="apps_2point__cloud__editor_2include_2pcl_2apps_2point__cloud__editor_2common_8h.html">common.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
